package com.overflow;

/**
 * @author hong
 * @version 1.0
 * @description: 栈溢出
 * @date 2022/4/16 21:15
 */
public class StackOverFlowTest {

    static int count = 0;

    static void redo(){
        count++;
        redo();
    }

    public static void main(String[] args) {
        try {
            redo();
        }catch (Throwable t){
            t.printStackTrace();
            System.out.println(count);
        }
    }
}
